package org.marsdonne.auth;

import org.marsdonne.archives.Client;

import java.io.Serializable;

public class User implements Serializable {

    public static class Constants {
        public static final String USER_ID = "user_id";
        public static final String USER_NAME = "user_name";
        public static final String USER_REAL_NAME = "user_real_name";
        public static final String USED_CLIENT = "used_client";

        public static final String USER_ORG_ID = "user_org_id";
        public static final String USER_ORG_NAME = "user_org_name";
        public static final String USER_ORG_LICENSE_CODE = "user_org_license_code";
    }

    private Long id;
    private String username;
    private String realName;
    private Client client;
    private boolean working = false;
    private Long orgId;
    private String orgName;
    private String orgLicenseCode;

    public User(Long id, String username, String realName, Client client, Long orgId, String orgName, String orgLicenseCode) {
        this.id = id;
        this.username = username;
        this.realName = realName;
        this.client = client;
        this.orgId = orgId;
        this.orgName = orgName;
        this.orgLicenseCode = orgLicenseCode;
    }

    public Long getOrgId() {
        return orgId;
    }

    public String getOrgLicenseCode() {
        return orgLicenseCode;
    }

    public String getUsername() {
        return username;
    }

    public String getRealName() {
        return realName;
    }

    public Long getId() {
        return id;
    }

    public String getOrgName() {
        return orgName;
    }

    public Client getClient() {
        return client;
    }

    public boolean isWorking() {
        return working;
    }
}
